set(SRC ./core/pfft_fft.c ./core/pfft_fft2.c)

if(BUILD_SHARED_LIBS)
    add_library(LIB_PFFT_SHARED SHARED ${SRC})
    set_target_properties(LIB_PFFT_SHARED PROPERTIES OUTPUT_NAME pfft_${MAJOR_VERSION}_${MINOR_VERSION})
endif(BUILD_SHARED_LIBS)

if(BUILD_STATIC_LIBS)
    add_library(LIB_PFFT_STATIC STATIC ${SRC})
    set_target_properties(LIB_PFFT_STATIC PROPERTIES OUTPUT_NAME pfft_${MAJOR_VERSION}_${MINOR_VERSION})
endif(BUILD_STATIC_LIBS)

